package com.ai.controller.made;

import com.ai.annotation.EnterPathParamLog;
import com.ai.common.CommonResponse;
import com.ai.entity.function.FunctionPO;
import com.ai.entity.function.FunctionPage;
import com.ai.entity.made.page.CameraPage;
import com.ai.service.made.FunctionService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 算法功能管理
 * @Author jiaok
 * @Date 2024-08-09 16:09
 */
@Slf4j
@RestController
@RequestMapping("/functions")
public class FunctionsController {


    @Resource
    private FunctionService functionService;


    @ApiOperation("获取功能列表")
    @PostMapping("/getFunctionList")
    @EnterPathParamLog
    public CommonResponse getFunctionList() {
        return functionService.getFunctionList();
    }


}
